#!/bin/bash

mkdir -p logs
echo "See $PWD/logs directory for details"
echo
echo "Starting compilation ....  $0"
echo

for file in `echo "dirac.sh schroedinger.sh yasm.sh a52dec.sh libao.sh opencore-amr.sh faac.sh libogg.sh faad.sh libtheora.sh xvid.sh libvorbis.sh libvpx.sh lame.sh x264-git.sh ffmpeg-0.11.1.sh"`
do
    #killall Console 2> /dev/null
    sleep 1
    #open -a Console logs/$file.log 
    SCRIPT=$file ; echo -n "Starting $SCRIPT : " ; ./video_tools_scripts/$SCRIPT > logs/$SCRIPT.log 2>&1 && echo " OK" || echo " failed (logs/$SCRIPT.log for details)"
done



